let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n139,
                    i =
                    (this && this.__extends) ||
                    ((_n139 = function n(t, e) {
                            return (_n139 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n139(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.PropertyCom = void 0);
                var r = t('UIComponent'),
                    a = t('ComUtils'),
                    s = (function(t) {
                        function e(e) {
                            var o = t.call(this, e) || this;
                            return (o._value = 0), o;
                        }
                        return (
                            i(e, t),
                            (e.prototype.onInit = function() {
                                t.prototype.onInit.call(this),
                                    (this._value = 0),
                                    (this._txtValue = a.default.getComponent(
                                        cc.Label,
                                        this.view,
                                        'Background/txtValue'
                                    )),
                                    this.refresh();
                            }),
                            Object.defineProperty(e.prototype, 'value', {
                                get: function get() {
                                    return this._value;
                                },
                                set: function set(t) {
                                    this._value != t &&
                                        ((this._value = t),
                                            this.refresh(),
                                            cc
                                            .tween(this._txtValue.node)
                                            .to(0.1, {
                                                scale: 1.5
                                            })
                                            .to(0.1, {
                                                scale: 1
                                            })
                                            .start());
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.refresh = function() {
                                this._txtValue.string = this.format(this._value);
                            }),
                            (e.prototype.format = function(t) {
                                return t < 1e3 ?
                                    t + '' :
                                    t < 1e6 ?
                                    Math.floor(t / 100) / 10 + 'K' :
                                    Math.floor(t / 1e5) / 10 + 'M';
                            }),
                            e
                        );
                    })(r.UIComponent);
                (o.PropertyCom = s), console.log("end");
            module.exports =  e.exports;